import request from '@/utils/request'

// 获取订单来源
export function getOrderSourceList() {
  return request(
    {
      url: '/data-dict/app/v2/dictionary/ORDER_SOURCE',
      method: 'get',
      params: {
        domainCode: 'marketing',
        appCode: 'retail'
      },
      loading: false // 是否显示加载
    }
  )
}

// 提交/保存行程
export function getOrderSourceLoading(data) {
  return request(
    {
      url: '/data-dict/app/v2/dictionary/ORDER_SOURCE',
      method: 'get',
      params: {
        domainCode: 'marketing',
        appCode: 'retail'
      },
      loading: true, // 是否显示加载
      message: '正在加载' // 加载提示信息
    }
  )
}
